Skip to content

fix(hub): align tests, example & API snapshots with dropped ~builtin category default#95

Merged
antfu merged 1 commit into
mainfrom
mighty-cobras-begin
Jul 15, 2026
Merged

fix(hub): align tests, example & API snapshots with dropped ~builtin category default#95
antfu merged 1 commit into
mainfrom
mighty-cobras-begin

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Why

CI on main is red. Commit `1223160` ("fix(hub): relex builtin views ids") intentionally removed the hub's `withBuiltinCategory` auto-defaulting, shifting the responsibility for declaring the `~builtin` category to the callers themselves (as the follow-up `6d1bb4f` does for the inspect/messages/terminals plugins). That change left three artifacts asserting the old behavior, breaking the unit-test job across every OS/Node matrix:

  • `packages/hub/src/node/tests/host-docks.test.ts` — expected a registered `~builtin` view to be auto-assigned `category: '~builtin'`.
  • `examples/minimal-next-devframe-hub` — its settings dock relied on the removed default, and the example test asserted it.
  • `tests/snapshots/tsnapi/@devframes/hub/node.snapshot.*` — still listed the removed `withBuiltinCategory` method.

What

  • Rewrite the host-docks test to assert the hub now preserves the caller-supplied category untouched (no auto-default).
  • Make the minimal-next example declare `category: '~builtin'` on its settings dock explicitly, matching the built-in plugins.
  • Regenerate the stale tsnapi API snapshots.

Full suite green locally: `pnpm lint && pnpm test && pnpm typecheck && pnpm build` (651 tests pass).

This PR was created with the help of an agent.

…in category default

Commit 1223160 removed the hub's withBuiltinCategory auto-defaulting so
callers declare the ~builtin category themselves, but left the host-docks
test, the minimal-next example, and the tsnapi snapshots asserting the old
behavior. Update them to match: the hub preserves the caller-supplied
category untouched.
@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit c22b9d6
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a573bb42f7f4b00076fbd1d
😎 Deploy Preview https://deploy-preview-95--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu antfu merged commit ed42a4a into main Jul 15, 2026
12 checks passed
@antfu antfu deleted the mighty-cobras-begin branch July 15, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants